package com.worthtech.billportal.bean;

/**
 * WtPaymentId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class WtPaymentId implements java.io.Serializable {

	// Fields

	private String org_termcde;
	public String getOrg_termcde() {
		return org_termcde;
	}

	public void setOrg_termcde(String orgTermcde) {
		org_termcde = orgTermcde;
	}

	public String getOrg_mercode() {
		return org_mercode;
	}

	public void setOrg_mercode(String orgMercode) {
		org_mercode = orgMercode;
	}

	private String org_mercode;
	private Long trace;
	private String syseqno;

	// Constructors

	/** default constructor */
	public WtPaymentId() {
	}

	/** full constructor */
	public WtPaymentId(String org_termcde, String org_mercode, Long trace,
			String syseqno) {
		this.org_termcde = org_termcde;
		this.org_mercode = org_mercode;
		this.trace = trace;
		this.syseqno = syseqno;
	}

	// Property accessors

//	public String getTermcde() {
//		return this.org_termcde;
//	}
//
//	public void setTermcde(String org_termcde) {
//		this.org_termcde = org_termcde;
//	}

//	public String getMercode() {
//		return this.org_mercode;
//	}
//
//	public void setMercode(String org_mercode) {
//		this.org_mercode = org_mercode;
//	}

	public Long getTrace() {
		return this.trace;
	}

	public void setTrace(Long trace) {
		this.trace = trace;
	}

	public String getSyseqno() {
		return this.syseqno;
	}

	public void setSyseqno(String syseqno) {
		this.syseqno = syseqno;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof WtPaymentId))
			return false;
		WtPaymentId castOther = (WtPaymentId) other;

		return ((this.getOrg_termcde() == castOther.getOrg_termcde()) || (this
				.getOrg_termcde() != null
				&& castOther.getOrg_termcde() != null && this.getOrg_termcde().equals(
				castOther.getOrg_termcde())))
				&& ((this.getOrg_mercode() == castOther.getOrg_mercode()) || (this
						.getOrg_mercode() != null
						&& castOther.getOrg_mercode() != null && this.getOrg_mercode()
						.equals(castOther.getOrg_mercode())))
				&& ((this.getTrace() == castOther.getTrace()) || (this
						.getTrace() != null
						&& castOther.getTrace() != null && this.getTrace()
						.equals(castOther.getTrace())))
				&& ((this.getSyseqno() == castOther.getSyseqno()) || (this
						.getSyseqno() != null
						&& castOther.getSyseqno() != null && this.getSyseqno()
						.equals(castOther.getSyseqno())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getOrg_termcde() == null ? 0 : this.getOrg_termcde().hashCode());
		result = 37 * result
				+ (getOrg_mercode() == null ? 0 : this.getOrg_mercode().hashCode());
		result = 37 * result
				+ (getTrace() == null ? 0 : this.getTrace().hashCode());
		result = 37 * result
				+ (getSyseqno() == null ? 0 : this.getSyseqno().hashCode());
		return result;
	}

}